/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package facade;

import beans.ListPlacas;
import java.sql.SQLException;
import service.VehiculoService;

/**
 *
 * @author Ahmed
 */
public class VehiculoFacade {
    
    private static VehiculoService vehiculoService = new VehiculoService();
    
    public ListPlacas listarPlacas(){
        return vehiculoService.listarPlacas();
    }

    public void ingresarHorasExtras() throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException {
        vehiculoService.ingresarHoraExtra();        
    }

    public void ingresarIncidencias() throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException {
        vehiculoService.ingresarIncidencias();        
    }

    public ListPlacas listarPlacas(String tipo) {
        return vehiculoService.listarPlacas(tipo);
    }
    
}
